package Box2D.Common.Math
{
	import Box2D.Common.b2Wrapper;
	
	public class b2Vec2Array extends b2Wrapper
	{
		private var _length:int;
		public function b2Vec2Array(length:int)
		{
			super(callDirect('b2Vec2_Array_new',length));
			_length = length;
		}
		public function get length():int{return _length}
		public function getAt(index:int):b2Vec2{
			return new b2Vec2(0,0,_wrapper+index*8);
		}
		public function setAt(index:int,value:b2Vec2):void{
			setAt2(index,value.x,value.y);
		}
		public function setAt2(index:int,x:Number,y:Number):void{
			getAt(index).Set(x,y);
		}
	}
}